from common import *


def main():
    # 请根据自己电脑配置
    # # console = 'D:\\Changzhi\\dnplayer2\\dnconsole.exe '
    # console = 'C:\\leidian\\LDPlayer9\\dnconsole.exe'
    # # ld = 'D:\\Changzhi\\dnplayer2\\ld.exe '
    # ld = 'D:\\leidian\\LDPlayer9\\ld.exe '
    # # share_path = 'F:/share/Pictures'
    # share_path = 'C:/Users/Leq/Documents/leidian9/Pictures'
    dnconsole = Dnconsole()
    # 找相似图
    res = dnconsole.find_pic("1.png", "2.png", 0.5)  #
    print("res: {}".format(res))
    # 查看模拟器列表
    ld_list = dnconsole.get_list()
    print(ld_list)

    # 启动模拟器
    res = dnconsole.launch(0)
    print(res)

    # 看安装的软件列表
    dnconsole.get_package_list(0)


if __name__ == '__main__':
    main()
